package com.bingo.demo.DAO;

import com.bingo.demo.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserMapper {

    List<User> findAll();

    User findUserByUsername(String username);

    void addUser(User user);

    User findUserById(Integer id);

    void deleteUserByID(Integer id);

    void updateUser(User user);

}
